package com.tbit.uqbike.center.constant;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: chen
 * @Description: 系统配置
 * @Date: 创建于 16:01 2020/5/14
 */
@Configuration
@RefreshScope
public class SystemConstant {

    public static String time = "5000";

    public static String battery = "1";

    public static Integer batteryeu = 50;

    public void refresh() {

    }

    @Value("${tbit-system.time:5000}")
    public void setTime(String time) {
        SystemConstant.time = time;
    }

    @Value("${tbit-system.battery:1}")
    public void setBattery(String battery) {
        SystemConstant.battery = battery;
    }

    @Value("${tbit-system.batteryeu:50}")
    public void setBatteryeu(Integer batteryeu) {
        SystemConstant.batteryeu = batteryeu;
    }
}
